<?php 
require_once("admin-header.php");
require_once("../maincore.php");
if (!defined("THNOJ")) exit(1);

$cid=intval($_GET['cid']);
$sql="UPDATE `contest` SET defunct=if(defunct='Y','N','Y') WHERE `contest_id`=$cid and author_id='$myid'";
mysql_query($sql) or die(mysql_error());
?>
<script language=javascript>
	history.go(-1);
</script>

